package com.zoro.barn.business.service.system.business.user.dao;

import com.zoro.barn.commons.db.annotations.MybatisMapper;
import com.zoro.barn.commons.db.annotations.NeedPage;
import com.zoro.barn.business.service.system.business.user.entity.BarnUser;

import java.util.List;

/**
 * @author zhaoxingwu
 */
@MybatisMapper
public interface BarnUserMapper {
    /**
     * 动态条件查询
     *
     * @param param 查询条件
     * @return 查询结果
     */
    @NeedPage
    List<BarnUser> query(BarnUser param);

    /**
     * insert a new data
     *
     * @param param data
     */
    void insert(BarnUser param);

    /**
     * update a data by pid
     *
     * @param data data
     */
    void update(BarnUser data);


    /**
     * query by pid
     * @param pid pid
     * @return result
     */
    BarnUser getById(String pid);
}
